home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
how to learn assembler.adf
/
CH5
/
5_3D_fire_but.asm
< prev
next >
Wrap
Assembly Source File
|
1988-02-25
|
429b
|
19 lines
;(5.3D) fire button test & joy difference
test:
jsr run ;test subroutine
tst.b $bfe001 ;test for fire button
bpl fire ;end if fire button pressed jmp test ;continue until broken
nop ;Breakpoint here
joy = $dff00C
run:
move d7,d6 ;old position in d6
move joy,d7 ;new position in d7
sub d7,d6 ;difference in d6 rts
fire:
end